<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/10/12
  Time: 14:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body><style type="text/css">
    button{
        width: 90px;
        height: 30px;
        margin: 25px;
        font-size: 20px;
        color: white;
        border-radius: 20px;
        background-color: cornflowerblue;
    }
    .btn{
        width: 90px;
        height: 30px;
        margin: 25px;
        font-size: 20px;
        color: white;
        border-radius: 20px;
        background-color: cornflowerblue;
    }
    body{
        background-color: bisque;
    }
</style>
<script type="text/javascript">
    function cancel() {
        window.location.href="index";
    }
</script>

<center >
    <h1>修改密码</h1>
    <h2>请确定周围的环境是否安全</h2></center>
<div  align="center" >
    <form action="updatePasswordaction" method="post">
        旧&nbsp;&nbsp;密&nbsp;&nbsp;码：<input  type="password" name="oldPassword" placeholder="请输入您的旧密码"><br><br>
        新&nbsp;&nbsp;密&nbsp;&nbsp;码：<input type="password" name="newPassword" placeholder="请输入新密码">
    <c:if test="${param.message=='OLD_EQUAL_NEW'}">
        <span style="color: red">新旧密码不能相同！请重新输入！</span></c:if>
    <c:if test="${param.message=='PASSQORD_LONG'}"><span style="color: red">密码长度不对！请重新输入！</span> </c:if>
    <br><br>
        再次输入：<input name="newPassword2" type="password" placeholder="请再次输入您的密码">
        <c:if test="${param.message=='P1_NOT_P2'}" >
        <span style="color: red">两次密码不一样</span></c:if>
        <br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="确认" class="btn">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button  type="button" onclick="cancel()"> 取消</button>
    </form>

</div>
</body>
</html>
